package com.searchengine.entity;

import java.util.Date;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.base.entity.BaseObject;
/**
 *  Class Name: ContentObject.java  搜索引擎内容对象
 *  @author JLC From liutime.com
 *  @version 1.0
 */
public class ContentObject extends BaseObject{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9165845707595907325L;
	
	private Long id;
	/**
	 * 状态  1已更新 0未更新
	 */
	private int flag=1;
	/**
	 * 内容标题
	 */
	private  String title;
	/**
	 * 内容详细信息
	 */
	private String content; 
	/**
	 * 内容创建时间
	 */
	private Date createDate = new Date();
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
